<template>
  <el-table-column>
    <template slot="header">
      <div v-icanva="config" class="nihaoya" data-slot="header">
      </div>
    </template>
    <div slot-scope="scope">
      <div v-icanva="config" data-slot="main">
        {{ scope.row.date }}
      </div>
    </div>
  </el-table-column>
</template>
<script type="text/javascript">
export default {
  props: {
    value: {
      type: [Array, Object],
      default: function() {
        return {
          type: 'primary',
          size: 'medium',
          name: '按钮'
        }
      }
    }
  },
  computed: {
    data() {
      return this.value
    }
  },
  /**
   * 页面方法
   * @type {Object}
   */
  methods: {
    ceadas() {
      console.log("alkdjlkasjdl", this.config);
    }
  }
}

</script>
<style type="text/css" lang="scss">
.nihaoya {
  width: 100px;
  height: 50px;
  background-color: red;
  position: relative;
  z-index: 100860;
}

</style>
